<?php

class movimiento extends object_standard {

    //attributes
    protected $id;
    protected $nombre;
    protected $accion;
    protected $descripcion;
    protected $velocidad;
    protected $animador;
    //components
    var $components = array();
    //auxiliars for primary key and for files
    var $auxiliars = array();

    //data about the attributes
    public function metadata() {
        return array("id" => array(), "nombre" => array(), "accion" => array(), "descripcion" => array(), "velocidad" => array(),
            "animador" => array("foreign_name" => "e_m", "foreign" => "empleado", "foreign_attribute" => "cedula"));
    }

    public function primary_key() {
        return array("id");
    }

    public function relational_keys($class, $rel_name) {
        switch ($class) {
            case "empleado":
                switch($rel_name){
                    case "e_m":
                        return array("animador");
                    break;
                }
            break;    
            default:
                break;
        }
    }

}

?>